package com.lhy.wallet.service;

import com.lhy.wallet.exception.MalletException;
import com.lhy.wallet.pojo.User;

/**
 * @author: 卢辉宇
 * @date: 2023/3/10 16:26
 * @description:
 */
public interface UserService {
    User selectRemainder(Integer userId) throws MalletException;

    void consume(Integer userId, Double amount) throws MalletException;

    void refund(Integer userId, String billId, Double amount) throws MalletException;
}
